using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain.PurchasingManagement.PurchaseOrders
{
    /// <summary>
    /// 采购到货单物料信息
    /// </summary>
    [Table("ArrivalOrderMaterialInfo")]
    public class ArrivalOrderMaterialInfo
    {
        /// <summary>
        /// 关联采购到货单ID（外键）
        /// </summary>
        public long ArrivalOrderId { get; set; }

        /// <summary>
        /// ID
        /// </summary>
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 跟单编号 
        /// </summary>
        public string DocumentaryNumber { get; set; }

        /// <summary>
        /// 供应商合同号
        /// </summary>
        public string SupplierContractNo { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 主计量
        /// </summary>
        public string MainUnit { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal Quantity { get; set; }

        /// <summary>
        /// 批号
        /// </summary>
        public string BatchNo { get; set; }

        /// <summary>
        /// 入库数量
        /// </summary>
        public decimal InboundQuantity { get; set; }

        /// <summary>
        /// 到货说明
        /// </summary>
        public string ArrivalDescription { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDel { get; set; }

    }
}
